package com.kong.feign;

import com.kong.feign.impl.UserClientHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <dl>
 * <dd>Description: 使用Feign实现客户端的负载和断路器功能</dd>
 * <dd>Company: 大诚若谷信息技术有限公司</dd>
 * <dd>@date：2017/6/14 12:35</dd>
 * <dd>@author：Kong</dd>
 * </dl>
 */
@FeignClient(value = "spring-cloud-server", fallback = UserClientHystrix.class)
public interface UserClient {

    @RequestMapping(value = "/user")
    Object search();
    /*
    eureka may be incorrectly claiming instances are up when they're not.
    renewals are lesser than threshold and hence the instances are not being expired just to be safe.
     */
}
